package main

import "runtime"

func main() {
	exit := make(chan struct{})

	go func() {
		defer close(exit)
		println("1----")
		runtime.Goexit()  // 立即终止 整个调研堆栈
		println("2-----")
	}()
	<-exit
}
